import { createVuePlugin } from 'vite-plugin-vue2'
import { resolve } from 'path'
import { fileURLToPath, URL } from 'node:url'

// vite.config.js
export default {
  base: '/',
  publicDir: 'examplePublic',
  server: {
    port: 8082,
    host: '0.0.0.0',
    proxy: {}
  },
  plugins: [createVuePlugin()],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url)),
    },
    extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
  },
  build: {
    assetsInlineLimit: 2048,
    outDir: './dist/example',
  },
}